package com.yeeft.ocr.mapper;

import com.yeeft.ocr.domain.entity.UserTest;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 功能简要描述
 *
 * @author 赵仲文
 * @Copyright (c) 2016, frontpay.cn
 * @date 2018/5/7 15:59
 */

@Mapper
public interface UserTestMapper {
    @Select("SELECT * FROM UserTest WHERE userName = #{userName}")
    UserTest findUserByPhone(@Param("userName") String userName);

    @Insert("INSERT INTO UserTest(id, userName, password) VALUES(#{id}, #{userName}, #{password})")
    int insert(@Param("id") String id, @Param("userName") String userName, @Param("password") String password);
}
